package com.zc.campus_shops.util;

/**
 * 将pageIndex转换为rowIndex的工具类
 * @author 请叫我小纯洁丶
 *
 */
public class PageCalculator {

	public static int calculateRowIndex(int pageIndex, int pageSize) {
		return (pageIndex > 0) ? (pageIndex - 1) * pageSize : 0;
	}
}
